<template>
  <el-container class="dashboard-container">
    <!-- 头部区域 -->
    <el-header class="dashboard-header">
      <el-row>
        <el-col :span="24">
          系统仪表板
        </el-col>
      </el-row>
    </el-header>

    <!-- 主内容区域 -->
    <el-main class="dashboard-main">
      <el-scrollbar :native="false" style="height: 100%">
        <div class="container">
          <div class="div1">div1</div>
          <div class="div2">div2</div>
          <!--<a class="div3" href="https://www.baidu.com">测试</a>-->
          <div class="div4">div4</div>
        </div>
      </el-scrollbar>
    </el-main>

    <!-- 底部区域 -->
    <el-footer class="dashboard-footer">
      <el-row>
        <el-col :span="24">
          <p>© 2025 考试系统. All rights reserved.</p>
        </el-col>
      </el-row>
    </el-footer>
  </el-container>
</template>

<script>
  export default {
    name: 'Dashboard',
    created () {
      // 调用父组件Main的展示系统公告方法
      // this.$emit('showSystemNotice')
    },
  }
</script>

<style scoped lang="scss">
.dashboard-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  background-color: #409EFF;
  color: #fff;
  text-align: center;
  //line-height: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
  z-index: 100;
  align-content: center;
}

.dashboard-main {
  flex: 1;
  padding: 20px;
  overflow: hidden;
}

.dashboard-footer {
  background-color: #f5f5f5;
  color: #666;
  text-align: center;
  line-height: 60px;
  border-top: 1px solid #e6e6e6;
}

.container {
  display: flex;
  flex-direction: row;
  //flex-wrap: wrap;
  //flex-flow: row wrap;
  justify-content: center;
  align-items: baseline;
  height: 100%;
}
.div1 {
  background-color: #1f90ff;
  width: 500px;
  height: 30px;
}
.div2 {
  background-color: limegreen;
  width: 600px;
  height: 40px;
}
.div3 {
  background-color: #ffd550;
  width: 400px;
  height: 80px;
}
.div4 {
  background-color: #e11cc5;
  width: 300px;
  height: 45px;
}
</style>
